package com.oa.bean.work;

import java.math.BigDecimal;

// 办公用品表
public class Appliance {
	private int aid;// 用品id
	private String aname;// 用品名称
	private int count;// 数量
	private BigDecimal price;// 价格
	private int typeid;// 类型id

	private Atype atype;// 一个类型有多个物品

	public Atype getAtype() {
		return atype;
	}

	public void setAtype(Atype atype) {
		this.atype = atype;
	}

	public Appliance() {
	}

	public Appliance(int aid, String aname, int count, BigDecimal price, int typeid) {
		super();
		this.aid = aid;
		this.aname = aname;
		this.count = count;
		this.price = price;
		this.typeid = typeid;
	}

	public int getAid() {
		return aid;
	}

	public void setAid(int aid) {
		this.aid = aid;
	}

	public String getAname() {
		return aname;
	}

	public void setAname(String aname) {
		this.aname = aname;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public int getTypeid() {
		return typeid;
	}

	public void setTypeid(int typeid) {
		this.typeid = typeid;
	}

	@Override
	public String toString() {
		return "Typename [aid=" + aid + ", aname=" + aname + ", count=" + count + ", price=" + price + ", typeid="
				+ typeid + "]";
	}

}
